[ToC] [Up] [Back] [Next] ... [Book Plug] |
The Information Commons .................... Introduction to HTML |
<element_name>
-- that is,
they are simply the element name surrounded by left and right angle
brackets.
Most elements mark blocks of the document
for particular purpose or formatting: the above
<element_name> tag
marks the beginning of such as section. The
end of this section is then marked by the
ending tag </element_name>
-- note the
leading slash character "/" in front of the element name. End, or stop
tags are indicated by this leading slash character.
For example, the heading at the top of this page
is an H2
element, (a level 2 heading)
which is written as:
<H2> 2.1 Elements in HTML </H2>.
<HR>
element, which
draws a horizontal line across the page.
This element would simply be entered as
<HR>
<hr>
, <Hr>
or
<HR>
.
<A HREF="http://www.somewhere.ca/file.html"> marked text </a>.where the attribute HREF is assigned the indicated value. Note that the A element is not empty, and that it is closed by the tag
</a>
. Note also that end tags
never take attributes -- the
attributes to an element
are always placed in the start tag.
[ToC] [Up] [Back] [Next] ... [Book Plug] | .................... Introduction to HTML |
© Ian Graham 1994-1995 | Page Last Updated: 4 December 1995 |